package lab02.test11;

public class Test11 {
    public static void main(String[] args) {
            System.out.println("长方形");
        Rectangle r = new Rectangle(8,10);
        r.getPerimeter();
        r.getArea();
        r.printMyWay();

        System.out.println("正方形");
        Square s = new Square();
        s.height = 5;
        s.width = 5;
        s.printMyWay();
    }
}
